<template>
	<view>
		<view class="page page-bottom-bar newPrescript">
			<!-- 诊断信息 -->
			<view class="part2 box-shadow">
				<view class="font14">诊断</view>
				<textarea :value="form.content" @input="Ontextarea" placeholder="请输入诊断结果" placeholder-class="placeholderClass"></textarea>
			</view>
			<!-- 药品信息 -->
			<view class="part3 box-shadow">
				<view class="prescript-list drugs-box">
					<block v-for="index in 2" :key="index">
						<view class="item">
							<view class="part1 font14">Rp</view>
							<view class="part2">
								<view class="name font14">铁钙锌咀嚼片 *1</view>
								<view class="font12 font-969696">用法用量：2次/天，每次1片，温水送服</view>
							</view>
							<view class="part3 flex-row-end">
								<view class="btn-small grey">删除</view>
								<view class="btn-small green">编辑用量</view>
							</view>
						</view>
					</block>
				</view>
				<view class="btn font14 tc">+ 新增药品</view>
			</view>
		</view>
		<!-- 按钮 -->
		<view class="fix-bottom-btn flex-row-center">
			<view class="btn flex-row-center font-ffffff font15">保存常用处方</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					content: ''
				},
			}
		},
		methods: {
			Ontextarea(e) {
				this.form.content = e.detail.value
			},
		}
	}
</script>

<style lang="less">
	@import url("style.less");
</style>
